package com.tc.vms;

/**
 * Created by yonghua.zhang on 2016/3/16.
 */
public class VmsVersion {
    public static final int CurVersion = Version.V1_1_2.ordinal();

    public static String getDescByVer(int code) {
        try {
            Version v = Version.values()[code];
            return v.name();
        } catch (Exception e) {
        }

        return "UnknownVersion";
    }

    public static Version code2Version(int code) {
        return Version.values()[code];
    }

    public enum Version {
        V1_0_0_SNAPSHOT,
        V1_0_0,
        V1_0_1_SNAPSHOT,
        V1_0_1,
        V1_0_2_SNAPSHOT,
        V1_0_2,
        V1_1_0_SNAPSHOT,
        V1_1_0,
        V1_1_1,
        V1_1_2,
        V2_0_0_SNAPSHOT,
        V2_0_0,
        V3_0_0_SNAPSHOT,
        V3_0_0
    }
}
